<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<script src="../0104/jQuery-2.1.4.min.js"></script>
		<title></title>
	</head>
	<body>
		
		<input placeholder="xxxxxxxxxxxx" />
		<div class="col-lg-10">
			<textarea id="xxx" placeholder="ccccccccccccccccccc"></textarea>
		</div>
		<script>
			$("#xxx").focus(function(){
			     var pv = $(this).attr("placeholder");
			     var v = $(this).val();
			     if(pv == v){
			     	$(this).val('');
			     }
			     console.log(pv);
			  });
		  $("#xxx").blur(function(){
		    
		  });
			
			
			
		</script>
		
	</body>
</html>
